[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 5 Oct 2006 15:05:12 +0000 (16:05 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 5 Oct 2006 15:05:12 +0000 (16:05 +0100)
size, rather than the TX ring size.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index b147ee0256bd520a14abaebcee71395de930d71d..5519133cd4be8827403b5d2e19c5fe3ec649b3f7 100644 (file)
@@ -165,7 +165,7 @@ struct netfront_info {
        grant_ref_t gref_tx_head;
        grant_ref_t grant_tx_ref[NET_TX_RING_SIZE + 1];
        grant_ref_t gref_rx_head;
-       grant_ref_t grant_rx_ref[NET_TX_RING_SIZE];
+       grant_ref_t grant_rx_ref[NET_RX_RING_SIZE];
 
        struct xenbus_device *xbdev;
        int tx_ring_ref;